<template name="refunded">
	<div class="x7-refunded-select">
		<div id="all" class="x7-refunded-left active">全部</div>
		<div id="undo" class="x7-refunded-left">未处理</div>
		<div id="refunded" class="x7-refunded-left">已退款</div>
		<div id="refuse" class="x7-refunded-left">已拒绝</div>
	</div>

	<div class="x7-refunded-list">
        {{#each refundList}}
		<div class="x7-refunded-item">
			<div class="x7-refunded-content">
				<div class="x7-refunded-media">
					<div class="x7-refunded-img">
						{{#if user.head_img}}
						<img class="x7-merchantCenter-radius" src="{{user.head_img.path}}" width="40" height="40">
						{{else}}
						<img class="x7-merchantCenter-radius" src="img/my.png" width="40" height="40">
						{{/if}}
					</div>
					<div class="x7-refunded-username">{{user.nick_name}}</div>
				</div>
				<div class="x7-refunded-inner">
					<div>订单编号：{{order_no}}</div>
					<div>下单时间：{{order.pay_time}}</div>
					<span>总计：{{order.total_fee}}</span>
					<span>实付：{{order.pay_fee}}</span>
				</div>				
			</div>
			
			<div class="x7-refunded-state"> 
				{{#if refundedState state}}
					<div id="{{id}}refuse" class="x7-refunded-right refuse">拒绝</div>
					<div id="{{id}}agree" class="x7-refunded-right agree">同意</div>      
				{{else}}
					<div class="x7-refunded-deal">
						{{refundedStated state}}
					</div>
				{{/if}}
			</div>
		</div>     
		{{/each}}
	</div>
</template>